package com.admin.testproject.activity

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.MenuItem
import com.admin.testproject.BaseActivity
import com.admin.testproject.R
import kotlinx.android.synthetic.main.activity_coll_bar.*

/**
 * author 吴昶
 * date 2019/5/30
 * 标注
 */
class CollActivity :BaseActivity(){
    override fun bindLayout(): Int {
        return R.layout.activity_coll_bar
    }

    override fun bindData() {
        setSupportActionBar(tb_coll)
        supportActionBar?.setDisplayHomeAsUpEnabled(true)
        ctbl.title="555"
    }

    override fun bindEvent() {

    }


    override fun onOptionsItemSelected(item: MenuItem?): Boolean {
        when(item?.itemId){
            android.R.id.home->{
                finish()
                return true
            }
        }
        return super.onOptionsItemSelected(item)
    }
}